home *** CD-ROM | disk | FTP | other *** search
/ QuickTime VR Showcase / QuickTime VR Showcase.iso / 3rd Parties / Software / Apple / AMT 2.1 New Features Demo / SOURCES / oFlipbooks_1_10.k < prev    next >
Encoding:
Text File  |  1996-12-21  |  11.8 KB  |  565 lines  |  [TEXT/MPS ]

  1. object oFlipbooks_1_10 is cDefaultContainer
  2. with
  3.     Binder is oBinder;
  4.     Label is -1;
  5.     Items is [
  6.         oKeyboard_Volume__10_23,
  7.         oClick_Sound__Up__10_2,
  8.         oClick_Sound__down__10_3,
  9.         oFB_BCK1_PIC_10_14,
  10.         oArrow_Right_Yellow_Highligh_10_4,
  11.         oArrow_Left_Yellow_Highlight_10_5,
  12.         oExit_Yellow_Highlight_10_6,
  13.         oMenu_Yellow_Highlight_10_8,
  14.         oExplain_Yellow_Highlight_10_17,
  15.         oArrow_Left_Inverse_10_9,
  16.         oArrow_Right_Inverse_10_10,
  17.         oExit_Inverse_10_11,
  18.         oExplain_Inverse_10_12,
  19.         oMenu_Inverse_10_13,
  20.         oFB_NAME_PIC_10_15,
  21.         oFB_HLP1_PIC_10_18
  22.     ];
  23. end;
  24.  
  25.  
  26. object oKeyboard_Volume__10_23 is cKeyboardHandler
  27. with
  28.     Behavior is cDefaultBehavior
  29.     has
  30.         KeyDown(theTarget, theKey)
  31.         use
  32.             KeyMatch;
  33.             
  34.             do
  35.                 KeyMatch := theKey = '-';
  36.                 if KeyMatch then
  37.                     theTarget.DoDefaultMethod := false;
  38.                 
  39.                     oSoundVolume.StepIndexBy(-1);
  40.                 end;
  41.                 KeyMatch := theKey = '=';
  42.                 if KeyMatch then
  43.                     theTarget.DoDefaultMethod := false;
  44.                 
  45.                     oSoundVolume.StepIndexBy(1);
  46.                 end;
  47.                 KeyMatch := theKey = '+';
  48.                 if KeyMatch then
  49.                     theTarget.DoDefaultMethod := false;
  50.                 
  51.                     oSoundVolume.StepIndexBy(1);
  52.                 end;
  53.             end;
  54.         
  55.     with
  56.         Enabled is true; Shown is false; 
  57.         X is 30; Y is 24; Width is 0; Height is 0;
  58.     end;
  59. end;
  60.  
  61.  
  62. object oClick_Sound__Up__10_2 is cSoundHandler
  63. with
  64.     Supplier is oS3_2clk_WAV;
  65.     Behavior is cDefaultBehavior
  66.     has
  67.     with
  68.         Enabled is true; Shown is true; 
  69.         X is 247; Y is 128; Width is 32; Height is 24;
  70.     end;
  71. end;
  72.  
  73.  
  74. object oClick_Sound__down__10_3 is cSoundHandler
  75. with
  76.     Supplier is oS3_clk_WAV;
  77.     Behavior is cDefaultBehavior
  78.     has
  79.     with
  80.         Enabled is true; Shown is true; 
  81.         X is 304; Y is 228; Width is 32; Height is 24;
  82.     end;
  83. end;
  84.  
  85.  
  86. object oFB_BCK1_PIC_10_14 is cPictureHandler
  87. with
  88.     Duration is -1;
  89.     Supplier is oFB_BCK1_PIC;
  90.     Behavior is cDefaultBehavior
  91.     has
  92.     with
  93.         Enabled is false; Shown is true; 
  94.         X is 0; Y is 0; Width is 640; Height is 480;
  95.     end;
  96. end;
  97.  
  98.  
  99. object oArrow_Right_Yellow_Highligh_10_4 is cPictureHandler
  100. with
  101.     Duration is -1;
  102.     Supplier is oS2_ALYH_PIC;
  103.     Behavior is cDefaultBehavior
  104.     has
  105.         Offscreen(theTarget)
  106.             do
  107.                 theTarget.Show(false);
  108.             end;
  109.         
  110.         MouseEnter(theTarget, theX, theY)
  111.             do
  112.                 theTarget.Show(true);
  113.             end;
  114.         
  115.         MouseLeave(theTarget, theX, theY)
  116.             do
  117.                 theTarget.Show(false);
  118.             end;
  119.         
  120.         MouseDown(theTarget, theX, theY)
  121.             do
  122.                 theTarget.Show(false);
  123.                 oArrow_Right_Inverse_10_10.Show(true);
  124.                 -- Turn off the spining cursor, if there is one
  125.                 if oBinder.MouseSpin<>void then
  126.                     if oBinder.MouseSpin.IsRunning() then
  127.                         oBinder.MouseSpin.Stop();
  128.                     end;
  129.                     oBinder.MouseSpin := void;
  130.                 end;
  131.                 theTarget.Container.OverrideCursor := true;
  132.                 oBinder.MouseSpin := oHandSpin;
  133.                 if (oBinder.MouseSpin @ 1).Data=void then
  134.                     oBinder.MouseSpin.EachUp(Load);
  135.                 end;
  136.                 if not oBinder.MouseSpin.IsRunning() then
  137.                     oBinder.MouseSpin.Start();
  138.                 end;
  139.                 oBinder.Refresh();
  140.                 oClick_Sound__down__10_3.Run(true);
  141.             end;
  142.         
  143.         MouseUp(theTarget, theX, theY)
  144.             do
  145.                 theTarget.Show(true);
  146.                 oArrow_Right_Inverse_10_10.Show(false);
  147.                 -- Turn off the spining cursor, if there is one
  148.                 if oBinder.MouseSpin<>void then
  149.                     if oBinder.MouseSpin.IsRunning() then
  150.                         oBinder.MouseSpin.Stop();
  151.                     end;
  152.                     oBinder.MouseSpin := void;
  153.                 end;
  154.                 theTarget.Container.OverrideCursor := false;
  155.                 oBinder.Refresh();
  156.                 oClick_Sound__Up__10_2.Run(true);
  157.                 oBinder.Goto(oflipbooks_2_11);
  158.                 oBinder.SetTransition(oWipeRight, 30);
  159.             end;
  160.         
  161.     with
  162.         Enabled is true; Shown is true; 
  163.         X is 473; Y is 426; Width is 55; Height is 54;
  164.     end;
  165. end;
  166.  
  167.  
  168. object oArrow_Left_Yellow_Highlight_10_5 is cPictureHandler
  169. with
  170.     Duration is -1;
  171.     Supplier is oS2_ARYH_PIC;
  172.     Behavior is cDefaultBehavior
  173.     has
  174.         Offscreen(theTarget)
  175.             do
  176.                 theTarget.Show(false);
  177.             end;
  178.         
  179.         MouseEnter(theTarget, theX, theY)
  180.             do
  181.                 theTarget.Show(true);
  182.             end;
  183.         
  184.         MouseLeave(theTarget, theX, theY)
  185.             do
  186.                 theTarget.Show(false);
  187.             end;
  188.         
  189.         MouseDown(theTarget, theX, theY)
  190.             do
  191.                 theTarget.Show(false);
  192.                 oArrow_Left_Inverse_10_9.Show(true);
  193.                 -- Turn off the spining cursor, if there is one
  194.                 if oBinder.MouseSpin<>void then
  195.                     if oBinder.MouseSpin.IsRunning() then
  196.                         oBinder.MouseSpin.Stop();
  197.                     end;
  198.                     oBinder.MouseSpin := void;
  199.                 end;
  200.                 theTarget.Container.OverrideCursor := true;
  201.                 oBinder.MouseSpin := oHandSpin;
  202.                 if (oBinder.MouseSpin @ 1).Data=void then
  203.                     oBinder.MouseSpin.EachUp(Load);
  204.                 end;
  205.                 if not oBinder.MouseSpin.IsRunning() then
  206.                     oBinder.MouseSpin.Start();
  207.                 end;
  208.                 oBinder.Refresh();
  209.                 oClick_Sound__down__10_3.Run(true);
  210.             end;
  211.         
  212.         MouseUp(theTarget, theX, theY)
  213.             do
  214.                 theTarget.Show(true);
  215.                 oArrow_Left_Inverse_10_9.Show(false);
  216.                 -- Turn off the spining cursor, if there is one
  217.                 if oBinder.MouseSpin<>void then
  218.                     if oBinder.MouseSpin.IsRunning() then
  219.                         oBinder.MouseSpin.Stop();
  220.                     end;
  221.                     oBinder.MouseSpin := void;
  222.                 end;
  223.                 theTarget.Container.OverrideCursor := false;
  224.                 oBinder.Refresh();
  225.                 oClick_Sound__Up__10_2.Run(true);
  226.                 oBinder.SetTransition(oVerticalStore, 30);
  227.                 oBinder.Goto(oMain_Menu_1);
  228.             end;
  229.         
  230.     with
  231.         Enabled is true; Shown is true; 
  232.         X is 377; Y is 426; Width is 60; Height is 54;
  233.     end;
  234. end;
  235.  
  236.  
  237. object oExit_Yellow_Highlight_10_6 is cPictureHandler
  238. with
  239.     Duration is -1;
  240.     Supplier is oS2_ETYH_PIC;
  241.     Behavior is cDefaultBehavior
  242.     has
  243.         Offscreen(theTarget)
  244.             do
  245.                 theTarget.Show(false);
  246.             end;
  247.         
  248.         MouseEnter(theTarget, theX, theY)
  249.             do
  250.                 theTarget.Show(true);
  251.             end;
  252.         
  253.         MouseLeave(theTarget, theX, theY)
  254.             do
  255.                 theTarget.Show(false);
  256.             end;
  257.         
  258.         MouseDown(theTarget, theX, theY)
  259.             do
  260.                 theTarget.Show(false);
  261.                 oExit_Inverse_10_11.Show(true);
  262.                 -- Turn off the spining cursor, if there is one
  263.                 if oBinder.MouseSpin<>void then
  264.                     if oBinder.MouseSpin.IsRunning() then
  265.                         oBinder.MouseSpin.Stop();
  266.                     end;
  267.                     oBinder.MouseSpin := void;
  268.                 end;
  269.                 theTarget.Container.OverrideCursor := true;
  270.                 oBinder.MouseSpin := oHandSpin;
  271.                 if (oBinder.MouseSpin @ 1).Data=void then
  272.                     oBinder.MouseSpin.EachUp(Load);
  273.                 end;
  274.                 if not oBinder.MouseSpin.IsRunning() then
  275.                     oBinder.MouseSpin.Start();
  276.                 end;
  277.                 oBinder.Refresh();
  278.                 oClick_Sound__down__10_3.Run(true);
  279.             end;
  280.         
  281.         MouseUp(theTarget, theX, theY)
  282.             do
  283.                 theTarget.Show(true);
  284.                 oExit_Inverse_10_11.Show(false);
  285.                 -- Turn off the spining cursor, if there is one
  286.                 if oBinder.MouseSpin<>void then
  287.                     if oBinder.MouseSpin.IsRunning() then
  288.                         oBinder.MouseSpin.Stop();
  289.                     end;
  290.                     oBinder.MouseSpin := void;
  291.                 end;
  292.                 theTarget.Container.OverrideCursor := false;
  293.                 oBinder.Refresh();
  294.                 oClick_Sound__Up__10_2.Run(true);
  295.                 oBinder.Quit();
  296.             end;
  297.         
  298.     with
  299.         Enabled is true; Shown is true; 
  300.         X is 528; Y is 426; Width is 111; Height is 54;
  301.     end;
  302. end;
  303.  
  304.  
  305. object oMenu_Yellow_Highlight_10_8 is cPictureHandler
  306. with
  307.     Duration is -1;
  308.     Supplier is oS2_MNUYH_PIC;
  309.     Behavior is cDefaultBehavior
  310.     has
  311.         Offscreen(theTarget)
  312.             do
  313.                 theTarget.Show(false);
  314.             end;
  315.         
  316.         MouseEnter(theTarget, theX, theY)
  317.             do
  318.                 theTarget.Show(true);
  319.             end;
  320.         
  321.         MouseLeave(theTarget, theX, theY)
  322.             do
  323.                 theTarget.Show(false);
  324.             end;
  325.         
  326.         MouseDown(theTarget, theX, theY)
  327.             do
  328.                 theTarget.Show(false);
  329.                 oMenu_Inverse_10_13.Show(true);
  330.                 -- Turn off the spining cursor, if there is one
  331.                 if oBinder.MouseSpin<>void then
  332.                     if oBinder.MouseSpin.IsRunning() then
  333.                         oBinder.MouseSpin.Stop();
  334.                     end;
  335.                     oBinder.MouseSpin := void;
  336.                 end;
  337.                 theTarget.Container.OverrideCursor := true;
  338.                 oBinder.MouseSpin := oHandSpin;
  339.                 if (oBinder.MouseSpin @ 1).Data=void then
  340.                     oBinder.MouseSpin.EachUp(Load);
  341.                 end;
  342.                 if not oBinder.MouseSpin.IsRunning() then
  343.                     oBinder.MouseSpin.Start();
  344.                 end;
  345.                 oBinder.Refresh();
  346.                 oClick_Sound__down__10_3.Run(true);
  347.             end;
  348.         
  349.         MouseUp(theTarget, theX, theY)
  350.             do
  351.                 theTarget.Show(true);
  352.                 oMenu_Inverse_10_13.Show(false);
  353.                 -- Turn off the spining cursor, if there is one
  354.                 if oBinder.MouseSpin<>void then
  355.                     if oBinder.MouseSpin.IsRunning() then
  356.                         oBinder.MouseSpin.Stop();
  357.                     end;
  358.                     oBinder.MouseSpin := void;
  359.                 end;
  360.                 theTarget.Container.OverrideCursor := false;
  361.                 oBinder.Refresh();
  362.                 oClick_Sound__Up__10_2.Run(true);
  363.                 oBinder.Goto(oMain_Menu_1);
  364.             end;
  365.         
  366.     with
  367.         Enabled is true; Shown is true; 
  368.         X is 163; Y is 427; Width is 126; Height is 53;
  369.     end;
  370. end;
  371.  
  372.  
  373. object oExplain_Yellow_Highlight_10_17 is cPictureHandler
  374. with
  375.     Duration is -1;
  376.     Supplier is oS2_EXYH_PIC;
  377.     Behavior is cDefaultBehavior
  378.     has
  379.         Offscreen(theTarget)
  380.             do
  381.                 theTarget.Show(false);
  382.             end;
  383.         
  384.         MouseEnter(theTarget, theX, theY)
  385.             do
  386.                 theTarget.Show(true);
  387.                 -- Turn off the spining cursor, if there is one
  388.                 if oBinder.MouseSpin<>void then
  389.                     if oBinder.MouseSpin.IsRunning() then
  390.                         oBinder.MouseSpin.Stop();
  391.                     end;
  392.                     oBinder.MouseSpin := void;
  393.                 end;
  394.                 theTarget.Container.OverrideCursor := true;
  395.                 if oQueryCursor=void then
  396.                     oQueryCursor.Load();
  397.                 end;
  398.                 oQueryCursor.Set();
  399.             end;
  400.         
  401.         MouseLeave(theTarget, theX, theY)
  402.             do
  403.                 theTarget.Show(false);
  404.                 -- Turn off the spining cursor, if there is one
  405.                 if oBinder.MouseSpin<>void then
  406.                     if oBinder.MouseSpin.IsRunning() then
  407.                         oBinder.MouseSpin.Stop();
  408.                     end;
  409.                     oBinder.MouseSpin := void;
  410.                 end;
  411.                 theTarget.Container.OverrideCursor := false;
  412.             end;
  413.         
  414.         MouseDown(theTarget, theX, theY)
  415.             do
  416.                 theTarget.Show(false);
  417.                 oExplain_Inverse_10_12.Show(true);
  418.                 oBinder.Refresh();
  419.                 oClick_Sound__down__10_3.Run(true);
  420.                 oFB_HLP1_PIC_10_18.Show(not oFB_HLP1_PIC_10_18.IsShown());
  421.             end;
  422.         
  423.         MouseUp(theTarget, theX, theY)
  424.             do
  425.                 theTarget.Show(true);
  426.                 oExplain_Inverse_10_12.Show(false);
  427.                 oBinder.Refresh();
  428.                 oClick_Sound__Up__10_2.Run(true);
  429.             end;
  430.         
  431.     with
  432.         Enabled is true; Shown is true; 
  433.         X is 289; Y is 427; Width is 87; Height is 53;
  434.     end;
  435. end;
  436.  
  437.  
  438. object oArrow_Left_Inverse_10_9 is cPictureHandler
  439. with
  440.     Duration is -1;
  441.     Supplier is oS2_ALI_PIC;
  442.     Behavior is cDefaultBehavior
  443.     has
  444.         Offscreen(theTarget)
  445.             do
  446.                 theTarget.Show(false);
  447.                 theTarget.Enable(false);
  448.             end;
  449.         
  450.     with
  451.         Enabled is true; Shown is true; 
  452.         X is 381; Y is 441; Width is 51; Height is 40;
  453.     end;
  454. end;
  455.  
  456.  
  457. object oArrow_Right_Inverse_10_10 is cPictureHandler
  458. with
  459.     Duration is -1;
  460.     Supplier is oS2_ARI_PIC;
  461.     Behavior is cDefaultBehavior
  462.     has
  463.         Offscreen(theTarget)
  464.             do
  465.                 theTarget.Show(false);
  466.                 theTarget.Enable(false);
  467.             end;
  468.         
  469.     with
  470.         Enabled is true; Shown is true; 
  471.         X is 477; Y is 438; Width is 50; Height is 42;
  472.     end;
  473. end;
  474.  
  475.  
  476. object oExit_Inverse_10_11 is cPictureHandler
  477. with
  478.     Duration is -1;
  479.     Supplier is oS2_ETI_PIC;
  480.     Behavior is cDefaultBehavior
  481.     has
  482.         Offscreen(theTarget)
  483.             do
  484.                 theTarget.Show(false);
  485.                 theTarget.Enable(false);
  486.             end;
  487.         
  488.     with
  489.         Enabled is true; Shown is true; 
  490.         X is 528; Y is 439; Width is 112; Height is 42;
  491.     end;
  492. end;
  493.  
  494.  
  495. object oExplain_Inverse_10_12 is cPictureHandler
  496. with
  497.     Duration is -1;
  498.     Supplier is oS2_EXI_PIC;
  499.     Behavior is cDefaultBehavior
  500.     has
  501.         Offscreen(theTarget)
  502.             do
  503.                 theTarget.Show(false);
  504.                 theTarget.Enable(false);
  505.             end;
  506.         
  507.     with
  508.         Enabled is true; Shown is true; 
  509.         X is 291; Y is 438; Width is 87; Height is 43;
  510.     end;
  511. end;
  512.  
  513.  
  514. object oMenu_Inverse_10_13 is cPictureHandler
  515. with
  516.     Duration is -1;
  517.     Supplier is oS2_MNUI_PIC;
  518.     Behavior is cDefaultBehavior
  519.     has
  520.         Offscreen(theTarget)
  521.             do
  522.                 theTarget.Show(false);
  523.                 theTarget.Enable(false);
  524.             end;
  525.         
  526.     with
  527.         Enabled is true; Shown is true; 
  528.         X is 167; Y is 438; Width is 123; Height is 43;
  529.     end;
  530. end;
  531.  
  532.  
  533. object oFB_NAME_PIC_10_15 is cFlipbookHandler
  534. with
  535.     FirstFrame is 3;
  536.     Looping is true;
  537.     Rythm is 60;
  538.     Supplier is oFB_NAME_PIC;
  539.     Behavior is cDefaultBehavior
  540.     has
  541.         Onscreen(theTarget)
  542.             do
  543.                 theTarget.Run(true);
  544.             end;
  545.         
  546.     with
  547.         Enabled is false; Shown is true; 
  548.         X is 188; Y is 8; Width is 235; Height is 116;
  549.     end;
  550. end;
  551.  
  552.  
  553. object oFB_HLP1_PIC_10_18 is cPictureHandler
  554. with
  555.     Duration is -1;
  556.     Supplier is oFB_HLP1_PIC;
  557.     Behavior is cDefaultBehavior
  558.     has
  559.     with
  560.         Enabled is false; Shown is false; 
  561.         X is 169; Y is 0; Width is 471; Height is 425;
  562.     end;
  563. end;
  564.  
  565.